package com.dy.tieba;

import java.io.IOException;
import java.util.List;

import org.apache.http.ParseException;

/**
 * 入口程序
 * @author qicf
 *
 */
public class TieBa {
	
	public static void main(String[] args) throws ParseException, IOException {
		//得到所有的用户信息cookie
		List<UserInfo> users = UserInfo.getUsers();
		 //发帖
		 for (UserInfo userInfo : users) {
			//启动发帖线程
			new Thread(new TidPost(userInfo)).start();
			try {
				//不同用户之间发帖相隔2个小时
				Thread.sleep(60 * 1000 * 60 * 2);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	     
	}
}
